@extends('admin.layout')

@section('content')
     <section>
      <h2><strong style="color:grey;">添加版块</strong></h2>
      <ul class="ulColumn2">
      <form action="{{route('clubs.update')}}" method="POST">
       <li>
        <span class="item_name" style="width:120px;">版块名称：</span>
        <input type="text" class="textbox textbox_295" name="name" value="{{$club->name}}" placeholder="版块名称"/>
        @if ($errors->has('name'))
        <span class="errorTips">{{$errors->first('name')}}</span>
        @endif
       </li>
       <li>
        <span class="item_name" style="width:120px;">类型：</span>
        <select name="type" class="select">
         @foreach($club_types as $k=>$v)
         <option value="{{$k}}" {{$club->type == $k ? 'selected="selected"' : ""}}>{{$v}}</option>
         @endforeach
        </select>
        <!-- <span class="errorTips">错误提示信息...</span> -->
       </li>
       <li>
        <span class="item_name" style="width:120px;">是否开启：</span>
        <label class="single_selection"><input type="radio" name="is_on" value="1" {{$club->is_on == 1?'checked="checked"':''}} />是</label>
        <label class="single_selection"><input type="radio" name="is_on" value="0" {{$club->is_on == 0?'checked="checked"':''}} />否</label>
       </li>
       <li>
        <span class="item_name" style="width:120px;">权限：</span>
        <input type="text" class="textbox" name="perm" value="{{$club->perm}}" />
       </li>
       <li>
       <li>
        <span class="item_name" style="width:120px;">排序：</span>
        <input type="text" class="textbox" name="order" value="{{$club->order}}" />
       </li>
       <li>
       <li>
        <span class="item_name" style="width:120px;">关键字：</span>
        <input type="text" class="textbox textbox_295" name="keyword" placeholder="版块关键字" value="{{$club->keyword}}" />
       </li>
       <li>
        <span class="item_name" style="width:120px;">描述：</span>
        <input placeholder="版块描述信息" class="textbox textbox_225" name="description" value="{{$club->description}}" style="width:500px;height:100px;" />
       </li>
       <li>
        <span class="item_name" style="width:120px;">LOGO：</span>
        <label class="uploadImg">
         <input type="file"/>
         <span>上传图片</span>
        </label>
       </li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="submit" class="link_btn"/>
       </li>
       <input type="hidden" name="id" value="{{$club->id}}" />
       	{!! csrf_field() !!}
       </form>
      </ul>
     </section>
@endsection